<template>
	<view class="content">
		<view class="block classify-tab-block">
			<view class="tab-content">
				<view class="tab-item" :class="tabActive==1?'active':''" @click="bindActive(1)">推荐{{pageType}}</view>
				<view class="tab-item" :class="tabActive==2?'active':''" @click="bindActive(2)" v-if="identity==1">推荐招聘会
				</view>
				<view class="tab-item" :class="tabActive==3?'active':''" @click="bindActive(3)" v-if="identity==1">推荐培训
				</view>
				<!-- <view @click="goCircle" class="tab-item">职友圈</view> -->
			</view>
		</view>
		<block v-if="tabActive==1">
			<template v-if="list.length>0">
				<view v-if="identity==1&&tabActive==1" class="block list-block">
					<view
						@click="navigate('/page_other/job_hunting/job_detail/index?id='+item.id+'&jobType='+item.jobType)"
						class="list-item" v-for="(item,index) in list" :key="item.id">
						<view style="display: flex;">
							<view class="list-info">
								<view class="title-info">
									<view class="title">{{item.jobTitle}}</view>
									<view class="fast-job" v-if="item.worry">急招</view>
									<view v-if="item.isHeat">
										<image style="width: 21px;height: 25px;padding-top: 10rpx;"
											src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/heat.png">
										</image>
									</view>
								</view>
								<view class="wage" v-if="item.minSalary">{{item.minSalary}}-{{item.maxSalary}}<text
										class="unit">元</text></view>
								<view class="wage" v-else>面议</view>
								<view class="label-block">
									<view class="label-item" v-for="label in item.label">{{label}}</view>
								</view>
								<view class="address iconfont icon-dizhi">{{item.jobAddress}}</view>
							</view>
							<view class="detail-info">
								<view class="name">{{item.comRecruiters.comPosition}}</view>
								<image mode="aspectFill" :src="item.comRecruiters.user.faceUrl" class="photo"></image>
								<view class="distance">距离:{{item.distances}}km</view>
							</view>
						</view>
						<view class="com-item">
							<image mode="aspectFill" :src="item.comRecruiters.enterprise.logoUrl" class="photo">
							</image>
							<view class="distance">{{item.comRecruiters.enterprise.enterpriseName}}</view>
						</view>
					</view>
				</view>
				<view v-if="identity==2" class="block list-block">
					<view @click="goView(item.id)" class="list-item person-item" v-for="(item,index) in list"
						:key="item.id">
						<view class="info-block">
							<image :src="item.user.faceUrl?item.user.faceUrl:imageUrl+'/job_hunting/home/Mr.png'"
								class="user-photo"></image>
							<view class="info">
								<view style="display: flex;">
									<view class="name">{{item.realName}}</view>
									<view style="margin-left: 50rpx; color: #999;font-size: 14px;">
										{{item.loginTimeText}}
									</view>
								</view>
								<view class="other-item">
									<view class="other">{{item.birthday}}岁 / </view>
									<view class="other"> {{item.educationText}} / </view>
									<view class="other" v-if="item.workTimeStart!=='0年'">
										{{item.workTimeStart}}经验 /
									</view>
									<view class="other" v-if="item.workTimeStart=='0年'">经验小于1年 / </view>
									<view class="other" v-if="item.jobText"> {{item.jobText}}</view>
								</view>
							</view>
						</view>
						<view class="job-block">
							<view class="job">
								<view class="job-content">
									<view class="jobList" v-if="item.addressType==1">
										<text class="darkgray" style="margin-right:10rpx;">想找</text>
										安定区 / {{item.postName}} /
										{{item.salaryMin}}-{{item.salaryMax}}元
									</view>
									<view class="jobList" v-else-if="item.addressType==2">
										<text class="darkgray" style="margin-right:10rpx;">想找</text>
										外地 / {{item.postName}} /
										{{item.salaryMin}}-{{item.salaryMax}}元
									</view>
									<view class="jobList" v-else>
										<text class="darkgray" style="margin-right:10rpx;">想找</text>
										安定区 / {{item.postName}} /
										{{item.salaryMin}}-{{item.salaryMax}}元
									</view>
								</view>
							</view>
							<!-- <view class="btn-block">
								<view class="btn" @click.stop="goChat(item.user.mobile)">沟通</view>
							</view> -->
						</view>
					</view>
				</view>
			</template>
			<view v-else-if="list.length>0&&!more" style="text-align: center;">没有更多了哦</view>
			<view v-else style="text-align: center;">暂未匹配到相关{{pageType}}</view>
			<LoadingTips v-if="showLoading" :imageUrl="imageUrl" :type="1"></LoadingTips>
		</block>
		<block v-if="identity==1&&tabActive==2">
			<template v-if="FairList.length>0">
				<view class="block list-block">
					<view class="model" v-for="(item,index) in FairList" :key="item.id">
						<view v-if="item.state==1" class="ranking-block">预定中</view>
						<view v-if="item.state==2" class="ranking"></view>
						<view v-if="item.state==3" class="ranking-blockgrey">已结束</view>
						<view class="list-item">
							<image mode="aspectFill" :src="item.coverUrl" class="cover-photo"></image>
							<view class="info">
								<view class="title">{{item.title}}</view>
								<view class="incount">
									<view class="module">企业{{item.qyCount}}家</view>
									<view class="module">职位{{item.zwCount}}个</view>
									<!-- <view class="module">岗位{{item.gwCount}}个</view> -->
								</view>
							</view>
						</view>
						<view class="lower">
							<view class="time">{{item.eventTimeStart}}至{{item.eventTimeEnd}}
							</view>
							<view @click="navigate('/page_other/job_hunting/job_fair/detail?id='+item.id)" class="btn">
								进入会场
							</view>
						</view>
					</view>
				</view>
			</template>
			<view v-else-if="FairList.length>0&&!more" style="text-align: center;">没有更多了哦</view>
			<view v-else style="text-align: center;">暂未匹配到相关招聘会</view>
		</block>
		<block v-if="identity==1&&tabActive==3">
			<template v-if="trainList.length>0">
				<view class="block list-block">
					<view class="item-block" v-for="(item) in trainList" :key="item.id"
						@click="navigate('/page_other/train/detail?id='+item.id+'&type='+item.trainState)">
						<view class="top-title">
							<view class="apply-title">{{item.company}}</view>
							<!-- <view class="btn" v-if="item.trainState===1">>立即报名</view>
							<view class="btn" v-else>已开班</view> -->
						</view>
						<view class="desc-block">
							<!-- <view class="desc">
								<image :src="imageUrl+'/train/department_icon.png'" mode="widthFix" class="desc-icon">
								</image>
								<view class="desc-text"><text class="label">机构：</text>{{item.company}}</view>
							</view> -->
							<view class="desc">
								<view class="desc-icon iconfont icon-dianhua"></view>
								<!-- <image :src="imageUrl+'/train/time_icon.png'" mode="widthFix" class="desc-icon"></image> -->
								<view class="desc-text" v-if="item.mobile"><text class="label">电话：</text>{{item.mobile}}
								</view>
								<view class="desc-text" v-else><text class="label">电话：</text>暂无</view>
							</view>
							<view class="desc">
								<view class="desc-icon iconfont icon-shouhuodizhi"></view>
								<view class="desc-text"><text class="label">地址：</text>{{item.transaddress}}</view>
							</view>
						</view>
					</view>
				</view>
			</template>
			<view v-else-if="trainList.length>0&&!more" style="text-align: center;">没有更多了哦</view>
			<view v-else style="text-align: center;">暂未匹配到相关培训</view>
		</block>
	</view>
</template>

<script>
	import {
		getCustomerListApi,
		getJobRecommendation,
		jobFairRecommendation,
		trainRecommendation
	} from '@/api/job_hunting.js';
	import {
		isMore
	} from '@/util/util.js';
	import {
		sendHiMessage
	} from '@/util/im.js'
	export default {
		data() {
			return {
				imageUrl: '',
				pageType: '',
				list: [],
				page: 1,
				limit: 10,
				more: true,
				total: 0,
				showLoading: false,
				latitude: 0,
				longitude: 0,
				tabActive: 1,
				FairList: [],
				trainList: []
			}
		},

		methods: {
			navigate(url) {
				uni.navigateTo({
					url
				})
			},
			goCircle() {
				uni.redirectTo({
					url: '/page_other/circle/index'
				})
			},
			goView(id) {
				uni.navigateTo({
					url: '/page_other/resume/index?type=view&id=' + id
				})
			},
			bindActive(index) {
				this.tabActive = index
				this.page = 1
				if (index == 1) {
					this.getList(true)
				}
				if (index == 2) {
					this.getFairList(true)
				}
				if (index == 3) {
					this.getTrainList(true)
				}
			},
			goChat(mobile) {
				if (this.identity == 2) {
					uni.$on('chooseChatPosition', (e) => {
						uni.$off('chooseChatPosition');
						uni.showLoading({
							title: '发送中',
							mask: true
						})
						try {

							sendHiMessage('你好！', mobile, e).finally(() => {
								uni.hideLoading()
								this.showToast('发送成功')
							})
						} catch (e) {
							uni.hideLoading()
						}
					})
					uni.navigateTo({
						url: '/page_other/choose_position/choose_position'
					})
				}
			},
			async getList(refresh = false) {
				//if (this.more) {
				this.latitude = uni.getStorageSync('latitude')
				this.longitude = uni.getStorageSync('longitude')
				let config = {
					page: this.page,
					limit: this.limit,
					latitude: this.latitude,
					longitude: this.longitude
				}
				this.showLoading = true
				let res = this.$store.getters.identity == 1 ? await getJobRecommendation(config) :
					await getCustomerListApi(config);
				if (this.$store.getters.identity == 1) {
					if (!res) {
						uni.showModal({
							title: '提示',
							content: `为了更好的为您精准的匹配岗位，请您填写您的求职意向`,
							confirmColor: '#0256FF',
							success: (res) => {
								if (res.confirm) {
									uni.reLaunch({
										url: '/page_other/resume/career_intention'
									})
								}
							}
						})
					}
				}
				this.showLoading = false;
				let list = res.list ?? [];
				this.list = refresh ? list : [...this.list, ...list]
				if (this.list.length > 0 && this.page == 1 && this.tabActive == 1) {
					this.showToast("系统已为您匹配到合适的" + this.pageType);
				};
				this.total = res.count
				this.more = isMore(this.page, this.limit, this.total)
				//}
			},
			getFairList(refresh = false) {
				this.showLoading = true
				jobFairRecommendation({
					page: this.page,
					limit: this.limit,
				}).then((res) => {
					this.showLoading = false;
					let list = res.list ?? [];
					this.FairList = refresh ? list : [...this.FairList, ...list];
					if (this.FairList.length > 0 && this.page == 1 && this.tabActive == 2) {
						this.showToast("系统已为您匹配到合适的招聘会");
					};
					this.total = res.count
					this.more = isMore(this.page, this.limit, this.total);
				})
			},
			getTrainList(refresh = false) {
				uni.showLoading({
					title: '匹配中',
					mask: true
				})
				trainRecommendation({
					page: this.page,
					limit: this.limit,
				}).then((res) => {
					uni.hideLoading()
					let list = res.modelList ?? [];
					this.trainList = refresh ? list : [...this.trainList, ...list];
					if (this.trainList.length > 0 && this.page == 1 && this.tabActive == 3) {
						this.showToast("系统已为您匹配到合适的培训");
					};
					this.total = res.count
					this.more = isMore(this.page, this.limit, this.total);
				})
			}
		},
		computed: {
			identity() {
				return this.$store.getters.identity
			}
		},
		onShow() {
			this.imageUrl = this.globalConfig.imageUrl;
			this.pageType = this.identity == 1 ? '职位' : '求职者';
			this.getList(true);

		},
		refresh() {
			this.page = 1
			this.more = true
			if (this.tabActive == 1) {
				this.getList(true);
			}
			if (this.tabActive == 2) {
				this.getFairList(true)
			}
			if (this.tabActive == 3) {
				this.getTrainList(true)
			}
		},
		onPullDownRefresh() {
			this.refresh();
			uni.stopPullDownRefresh();
		},
		onReachBottom() {
			if (this.more) {
				this.page++;
				if (this.tabActive == 1) {
					this.getList();
				}
				if (this.tabActive == 2) {
					this.getFairList()
				}
				if (this.tabActive == 3) {
					this.getTrainList()
				}
			}
		},
	}
</script>

<style lang="scss">
	$box-shadow: 0 0 10px 0 #efefef;

	page {
		background: #FAFAFA;
	}

	.content {
		width: 100%;

		.loadingicon {
			width: 100%;
			height: 80rpx;
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			justify-content: center;
		}

		.loading {
			width: 100%;
			height: 100rpx;
			line-height: 100rpx;
			align-items: center;
			justify-content: center;
			position: relative;
			text-align: center;
		}

		.loading .line {
			position: absolute;
			width: 450rpx;
			left: 150rpx;
			top: 50rpx;
			height: 1px;
			border-top: 1px solid #eee;
		}

		.loading .text {
			position: relative;
			display: inline-block;
			padding: 0 20rpx;
			background: #fff;
			z-index: 2;
			color: #777;
		}

		.loadingicon .loading {
			animation: load linear 1s infinite;
			font-size: 45rpx;
			color: #000;
		}

		.loadingicon {
			width: 100%;
			height: 80rpx;
		}

		//padding: 30rpx;
		.tips {
			width: 70%;
			padding: 10rpx 20rpx;
			margin: auto;
			background-color: #0256FF;
			color: #fff;
			text-align: center;
			font-size: 28rpx;
			border-radius: 60rpx;

		}

		.block {
			width: 100%;
			padding: 20rpx 30rpx;
			margin-bottom: 20rpx;
			position: relative;
		}

		.block.classify-tab-block {
			width: 100%;
			height: 100rpx;
			background-color: #fff;
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;

			.tab-content {
				display: flex;
				flex-direction: row;
				justify-content: left;

				.tab-item {
					padding: 10rpx 30rpx;
					font-weight: bold;
					font-size: 36rpx;
					margin-right: 20rpx;
					flex: none;
				}

				.tab-item.active {
					background: url("https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/job_hunting/home/tab_selected_bg.png") no-repeat right bottom;
					background-size: 70%;
				}
			}

			.publish-btn {
				width: 45rpx;
			}

			.iconfont {
				font-size: 32rpx;
				font-weight: bold;
				color: #000;
			}
		}

		.block.label-block {
			width: 100%;
			display: flex;
			flex-direction: row;
			justify-content: left;
			align-items: center;

			.label-content {
				width: calc(100% - 110rpx);
				display: flex;
				flex-direction: row;
				justify-content: left;
				align-items: center;

				.label-item {
					padding: 10rpx 30rpx;
					font-size: 28rpx;
					color: #999;
					background: #F3F3F3;
					margin-right: 20rpx;
				}

				.label-item.active {
					color: #0256FF;
					background: #E4EFFF;
				}

			}

			.font-text {
				font-size: 28rpx;
			}

			.iconfont {
				font-size: 38rpx;
				font-weight: bold;
				margin-right: 10rpx;
			}
		}

		.block.list-block {
			box-shadow: none;
			display: flex;
			flex-direction: column;
			margin-bottom: 0;

			.list-item {
				width: 100%;
				background: #fff;
				border-radius: 10rpx;
				box-shadow: $box-shadow;
				padding: 20rpx;
				flex-direction: row;
				justify-content: center;
				margin-bottom: 20rpx;

				.detail-info {
					width: 200rpx;
					height: 200rpx;
					display: flex;
					flex-direction: row;
					flex-wrap: wrap;
					justify-content: center;
					align-items: center;

					.name {
						width: 110rpx;
						font-size: 24rpx;
						color: #999;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
						text-align: center;
						text-indent: 20rpx;
					}

					.photo {
						width: 70rpx;
						height: 70rpx;
						border-radius: 100%;
						background: #efefef;
					}

					.apply-btn {
						border: 1px solid #0256FF;
						border-radius: 8rpx;
						color: #0256FF;
						font-size: 24rpx;
						padding: 8rpx 28rpx;
						position: relative;
						left: 30rpx;
					}

					.distance {
						color: #999;
						font-size: 24rpx;

					}
				}

				.com-item {
					border-top: 1px solid #f3ebeb;
					display: flex;
					padding-top: 20rpx;

					.photo {
						width: 50rpx;
						height: 50rpx;
						border-radius: 100%;
						background: #efefef;
					}

					.distance {
						color: #999;
						font-size: 24rpx;
						margin-left: 20rpx;
					}
				}

				.list-info {
					width: calc(100% - 180rpx);
					display: flex;
					flex-direction: column;

					.title-info {
						display: flex;
						flex-direction: row;
						align-items: center;

						.title {
							color: #000;
							font-weight: bold;
							font-size: 34rpx;
						}

						.fast-job {
							width: 60rpx;
							height: 38rpx;
							border: 1rpx solid #0256FF;
							font-size: 24rpx;
							text-align: center;
							color: #0256FF;
							margin-left: 20rpx;
							border-radius: 6rpx;
						}
					}

					view {

						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}



					.address {
						color: #999;
						font-size: 26rpx;
						margin-top: 5rpx;
					}

					.label-block {
						font-size: 24rpx;
						display: flex;
						flex-direction: row;
						flex-wrap: wrap;
						justify-content: left;
						margin-top: 20rpx;

						.label-item {
							padding: 8rpx 20rpx;
							background: #F5F6F8;
							color: #999;
							margin: 0 10rpx 20rpx 0;
						}
					}

					.wage {
						color: #0256FF;
						font-size: 36rpx;
						font-weight: bold;
						padding-top: 30rpx;

						.unit {
							font-size: 28rpx;
							font-weight: normal;
						}
					}
				}
			}

			.list-item:last-child {
				margin-bottom: 0;
			}

			.model {
				width: 100%;
				height: 100%;
				border-radius: 20rpx;
				background: #fff;
				// box-shadow: 0 0 10px 0 #efefef;
				// padding: 20rpx;
				flex-direction: row;
				margin-bottom: 30rpx;
				border-bottom: 1px solid #efefef;
				position: relative;

				.ranking-block {
					display: flex;
					padding: 6rpx 0 0 16rpx;
					color: #fff;
					position: absolute;
					font-size: 28rpx;
					top: 0;
					left: -2px;
					width: 160rpx;
					height: 60rpx;
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/job_hunting/job_fair/ongoing.png') no-repeat center;
					background-size: 100% 100%;
					line-height: 50rpx;
					padding-left: 36rpx;
				}

				.ranking {
					position: absolute;
					width: 160rpx;
					height: 60rpx;
					background: url('https://www.mashangjiuye.com/api/file/91885/zphing.png') no-repeat center;
					background-size: 100% 100%;
					line-hseight: 50rpx;
					padding-left: 36rpx;
				}

				.ranking-blockgrey {
					display: flex;
					padding: 6rpx 0 0 16rpx;
					color: #fff;
					position: absolute;
					font-size: 28rpx;
					top: 0;
					left: -2px;
					width: 160rpx;
					height: 60rpx;
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/job_hunting/job_fair/end.png') no-repeat center;
					background-size: 100% 100%;
					line-height: 50rpx;
					padding-left: 36rpx;
				}

				.list-item {
					//height: 90px;
					border-bottom: 1px solid #efefef;
					display: flex;

					.cover-photo {
						width: 140px;
						height: 80px;
						background: #efefef;
						margin-right: 20rpx;

					}

					.info {
						width: calc(100% - 195rpx);
						display: flex;
						flex-direction: column;

						.title {
							width: 100%;
							display: -webkit-box;
							-webkit-box-orient: vertical;
							-webkit-line-clamp: 2;
							overflow: hidden;
							font-weight: bold;
							font-size: 30rpx;
							color: #313131;
						}

						.host,
						.time {
							width: 100%;
							font-size: 26rpx;
							color: #999;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}

						.time {
							margin-top: 10rpx;
						}

						.host {
							margin-top: 10rpx;
						}

						.incount {
							display: flex;
							color: #909090;
							font-size: 28rpx;
							margin-top: 50rpx;

							.module {
								width: 130rpx;
								font-size: 24rpx;
							}

						}
					}
				}

				.lower {
					display: flex;
					margin-top: 10rpx;

					.time {
						color: #909090;
						font-size: 24rpx;
						margin-top: 15rpx;
					}

					.btn {
						width: 180rpx;
						height: 60rpx;
						line-height: 58rpx;
						border-radius: 15rpx;
						text-align: center;
						color: #fff;
						background-color: #0256FF;
						font-size: 28rpx;
						margin-left: 20px;
					}
				}

			}

			.item-block {
				width: 100%;
				height: 280rpx;
				background-color: #fff;
				box-shadow: 0px 0px 4px #ccc;
				border-radius: 10rpx;
				margin: 10rpx auto 10rpx auto;
				padding: 25rpx;

				.top-title {
					width: 100%;
					display: flex;
					align-items: center;
					justify-content: space-between;
					border-bottom: 1px solid #f6f6f6;
					padding-bottom: 25rpx;

					.apply-title {
						font-weight: bold;
						width: calc(100% - 20rpx);
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}

					.btn {
						width: 160rpx;
						height: 55rpx;
						line-height: 55rpx;
						border-radius: 50rpx;
						text-align: center;
						color: #fff;
						background-color: #0256FF;
						font-size: 28rpx;
					}
				}

				.desc-block {
					display: flex;
					flex-direction: column;

					.desc {
						display: flex;
						align-items: center;
						margin: 20rpx 0 0rpx 0;

						.iconfont {
							color: #0256FF;
							margin-right: 12rpx;
							font-weight: bold;
							padding-top: 4rpx;
						}

						.desc-icon {
							width: 30rpx;
							margin-right: 12rpx;
						}

						.desc-text {
							font-size: 30rpx;

							.label {
								color: #999;
							}
						}
					}
				}
			}

			.person-item {
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				padding: 0 30rpx;
				margin-bottom: 30rpx;

				.info-block,
				.job-block {
					width: 100%;
					padding: 20rpx 0;
				}

				.info-block {
					border-bottom: 1px solid #efefef;
					display: flex;
					flex-direction: row;
					align-items: center;

					.user-photo {
						width: 100rpx;
						height: 100rpx;
						border-radius: 50%;
					}

					.info {
						width: calc(100% - 120rpx);
						margin-left: 20rpx;
						font-size: 26rpx;

						.name {
							font-weight: bold;
							font-size: 34rpx;
						}

						.other-item {
							display: flex;
							flex-direction: row;

							.other {
								color: #999;
								margin-top: 14rpx;
								overflow: hidden;
								text-overflow: ellipsis;
								white-space: nowrap;
							}
						}

					}
				}

				.job-block {
					display: flex;
					flex-direction: row;
					align-items: center;

					.job {
						width: calc(100% - 140rpx);
						display: flex;
						flex-direction: column;
						justify-content: center;

						.label-block {
							width: 100%;
							display: flex;
							flex-direction: row;
							flex-wrap: wrap;

							.label-item {
								background: #F4F5F7;
								color: #999;
								font-size: 24rpx;
								padding: 4rpx 10rpx;
								margin-right: 20rpx;
								margin-bottom: 20rpx;
							}
						}

						.job-content {
							width: 100%;
							font-size: 26rpx;
						}
					}

					.btn-block {
						width: 140rpx;
						display: flex;
						align-items: center;
						justify-content: center;

						.btn {
							padding: 6rpx 26rpx;
							border: 1px solid #0256FF;
							border-radius: 6rpx;
							color: #0256FF;
							font-size: 24rpx;
						}
					}
				}
			}

			.person-item:last-child {
				margin-bottom: 0;
			}

			.circle-item {
				display: flex;
				flex-direction: column;
				padding: 30rpx 30rpx 15rpx 30rpx;

				.info-block {
					display: flex;
					align-items: center;

					.user-photo {
						width: 70rpx;
						border-radius: 35rpx;
						margin-right: 15rpx;
					}

					.name {
						width: calc(100% - 70rpx - 15rpx);
						font-size: 30rpx;
					}
				}

				.content-block {
					font-size: 30rpx;
					padding: 15rpx 0 0rpx 0;

					.part-content {
						line-height: 50rpx;
						display: -webkit-box;
						overflow: hidden;
						/*超出隐藏*/
						text-overflow: ellipsis;
						/*隐藏后添加省略号*/
						-webkit-box-orient: vertical;
						-webkit-line-clamp: 3; //想显示多少行

						.keyword {
							color: #0b93e1;
						}

						.aite {
							color: #0b93e1;
						}
					}

					.content {
						line-height: 50rpx;

						.keyword {
							color: #0b93e1;
						}

						.aite {
							color: #0b93e1;
						}
					}

					.all {
						width: 60rpx;
						;
						margin-top: 10rpx;
						color: #0256FF;
					}
				}

				.video-block {
					width: 100%;

					.video-item {
						width: 400rpx;
						height: 300rpx;
					}
				}

				.operate-block {
					display: flex;
					flex-direction: row;
					justify-content: space-between;
					align-items: center;

					.time {
						color: #999999;
						font-size: 28rpx;
					}

					.operate {
						display: flex;
						align-items: center;
						height: 70rpx;

						.operate-item {
							width: 320rpx;
							height: 70rpx;
							border-radius: 6rpx;
							background-color: #616161;
							display: flex;
							flex-direction: row;

							.item {
								width: calc(100% / 2 - 1px);
								display: flex;
								flex-direction: row;
								align-items: center;
								justify-content: center;
								border-right: 1px solid rgba(0, 0, 0, .1);

								.operate-icon {
									width: 30rpx;
									margin-right: 5rpx;
								}

								.operate-name {
									font-size: 28rpx;
									color: #ccc;
								}
							}

							.item:last-child {
								border: 0;
							}
						}

						.icon {
							width: 65rpx;
							margin-left: 10rpx;
						}
					}

				}

				.comment-block {
					background-color: #f0f0f0;
					border-radius: 6rpx;
					padding: 20rpx;
					margin-top: 10rpx;
					display: flex;
					flex-direction: column;

					.like-item {
						width: 100%;
						margin: auto;

						.like-icon {
							width: 35rpx;
							position: relative;
							top: 4rpx;
						}

						.name {
							font-size: 28rpx;
							color: #0b92e0;
							margin-left: 7rpx;
						}

						.comma {
							color: #0b92e0;
						}
					}

					.divide-line {
						padding-bottom: 20rpx;
						border-bottom: 1px solid #ccc;
					}

					.comment-list {
						display: flex;
						flex-direction: column;
						padding-top: 10rpx;

						.comment-item {
							.content {
								font-size: 30rpx;
								line-height: 50rpx;
								display: -webkit-box;
								overflow: hidden;
								/*超出隐藏*/
								text-overflow: ellipsis;
								/*隐藏后添加省略号*/
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 3; //想显示多少行

								.name {
									color: #0b92e0;
								}
							}
						}
					}
				}
			}
		}
	}
</style>